<%= form_for(@activity) do |f| %>
	<%=render "shared/error_messages", object: @activity%>

  <div class="field">
    <%= f.label :title, "活动标题" %><br>
    <%= f.text_field :title, class: "form-control"%>
  </div>
  <div class="field">
    <%= f.label :desc, "活动描述" %><br>
    <%= f.text_area :desc, class: "form-control", rows: 8 %>
  </div>
  <div class="field">
    <%= f.label :start_time, "起始时间" %><br>
		<%= f.text_field :start_time, class: "form-control", data:{provide: 'datepicker', 'date-format': 'yyyy-mm-dd', 'date-startDate':'-3d'}%>
  </div>
  <div class="field">
    <%= f.label :end_time, "结束时间" %><br>
    <%= f.text_field :end_time, class: "form-control", data:{provide: 'datepicker', 'date-format': 'yyyy-mm-dd', 'date-startDate':'-3d'}%>
  </div>

	<%=f.hidden_field :user_id, value: current_user.id%>
  <div class="actions">
    <%= f.submit "创建", class: "btn btn-success"%>
  </div>
<% end %>
